<div class="editor">
	<input type="hidden" name="sid" value="<{$sid}>"/>
	<span>当前学生：</span><span><{$editorInfo.stname}></span><span>专业：</span><span><{$editorInfo.major}></span><span>班级：</span><span><{$editorInfo.class}></span>
</div>
<hr>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="table table-bordered table-hover table-striped">
  <tr>
    <td width="34%" height="37" align="center" valign="middle">学年</td>
    <td width="34%" align="center" valign="middle">学期</td>
    <td width="32%" align="center" valign="middle">所任职务</td>
  </tr>
  <tr>
    <td rowspan="2" align="center" valign="middle"><{$years[1]}>学年</td>
    <td height="40" align="center" valign="middle">上半学期</td>
    <td align="center" valign="middle"><input type="text" name="up1" value="<{$classJobInfo[$years[1]]['up']['job']}>"/></td>
  </tr>
  <tr>
    <td height="39" align="center" valign="middle">下半学期</td>
    <td align="center" valign="middle"><input type="text" name="down1" value="<{$classJobInfo[$years[1]]['down']['job']}>"/></td>
  </tr>
  <tr>
    <td rowspan="2" align="center" valign="middle"><{$years[2]}>学年</td>
    <td height="40" align="center" valign="middle">上半学期</td>
    <td align="center" valign="middle"><input type="text" name="up2" value="<{$classJobInfo[$years[2]]['up']['job']}>"/></td>
  </tr>
  <tr>
    <td height="39" align="center" valign="middle">下半学期</td>
    <td align="center" valign="middle"><input type="text" name="down2" value="<{$classJobInfo[$years[2]]['down']['job']}>"/></td>
  </tr>
  <tr>
    <td rowspan="2" align="center" valign="middle"><{$years[3]}>学年</td>
    <td height="40" align="center" valign="middle">上半学期</td>
    <td align="center" valign="middle"><input type="text" name="up3" value="<{$classJobInfo[$years[3]]['up']['job']}>"/></td>
  </tr>
  <tr>
    <td height="39" align="center" valign="middle">下半学期</td>
    <td align="center" valign="middle"><input type="text" name="down3" value="<{$classJobInfo[$years[3]]['down']['job']}>"/></td>
  </tr>
  <tr>
    <td rowspan="2" align="center" valign="middle"><{$years[4]}>学年</td>
    <td height="40" align="center" valign="middle">上半学期</td>
    <td align="center" valign="middle"><input type="text" name="up4" value="<{$classJobInfo[$years[4]]['up']['job']}>"/></td>
  </tr>
  <tr>
    <td height="39" align="center" valign="middle">下半学期</td>
    <td align="center" valign="middle"><input type="text" name="down4" value="<{$classJobInfo[$years[4]]['down']['job']}>"/></td>
  </tr>
  <tr>
    <td rowspan="2" align="center" valign="middle"><{$years[5]}>学年</td>
    <td height="40" align="center" valign="middle">上半学期</td>
    <td align="center" valign="middle"><input type="text" name="up5" value="<{$classJobInfo[$years[5]]['up']['job']}>"/></td>
  </tr>
  <tr>
    <td height="39" align="center" valign="middle">下半学期</td>
    <td align="center" valign="middle"><input type="text" name="down5" value="<{$classJobInfo[$years[5]]['down']['job']}>"/></td>
  </tr>
</table>
<center><button class="btn btn-large btn-primary" name="submit_classjob">提交数据</button></center>
<script>
	var classjob=new PureAjax();
	var method1="<{$method}>";
	var sid=document.getElementsByName("sid")[0];
	var submit_classjob=document.getElementsByName("submit_classjob")[0];
	submit_classjob.onclick=function(){
		classjob.post({
			dataType:"text",
			data:{
				up1:(document.getElementsByName("up1")[0]).value,
				up2:(document.getElementsByName("up2")[0]).value,
				up3:(document.getElementsByName("up3")[0]).value,
				up4:(document.getElementsByName("up4")[0]).value,
				up5:(document.getElementsByName("up5")[0]).value,
				down1:(document.getElementsByName("down1")[0]).value,
				down2:(document.getElementsByName("down2")[0]).value,
				down3:(document.getElementsByName("down3")[0]).value,
				down4:(document.getElementsByName("down4")[0]).value,
				down5:(document.getElementsByName("down5")[0]).value,
				method:method1,
				submit:"yes"
			},
			url:URL+"Editor/createNewClassJob/sid/"+sid.value,
			success:function(data){
				alert(data);
			}
		});
	}
</script>